package com.tongzhan.entity.religion;

import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

/**
 * 检查实体类
 * @author wn
 * @date 2020/07/16
 */
@Data
@Document(collection = "Inspection")
public class Inspection extends BaseModel {
    @PrimaryKey
    @Field("InspectionCode")
    private String inspectionCode;
    @Field("UserName")
    private String userName;
    @Field("RealName")
    private String realName;//巡检人
    @Field("StreetCode")
    private String streetCode;
    @Field("StreetName")
    private String streetName;
    @Field("VillageCode")
    private String villageCode;
    @Field("VillageName")
    private String villageName;
    @Field("SiteCode")
    private String siteCode;
    @Field("SiteName")
    private String siteName;
    @Field("ReligionCode")
    private String religionCode;
    @Field("ReligionName")
    private String religionName;
//    @Field("InspectionPersonnel")
//    private String inspectionPersonnel;//巡检人
    @Field("TypeCode")
    private String typeCode;
    @Field("TypeName")
    private String typeName;
    @Field("State")
    private String state;
//    @Field("Problem1")
//    private String problem1;
//    @Field("Problem2")
//    private String problem2;
    @Field("Describe")
    private String describe;
    @Field("Picture")
    private String picture;
    @Field("Sign")
    private String sign;
    @Field("CheckList")
    private String checkList;//检查表内容
    @Field("Time")
    private String time;
    @Field("CreateTime")
    private LocalDateTime createTime;
    @Field("UpdateTime")
    private LocalDateTime updateTime;
}
